package ru.kop4en.diplom.camera;

import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JPanel;
import javax.swing.JSeparator;
import java.awt.event.ActionListener;

public class RightCameraPanel extends JPanel
{
	private static final long serialVersionUID = 1L;
	
	public RightCameraPanel()
	{
		setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
		
		add(next_button);

		JSeparator separator = new JSeparator();
		add(separator);

		add(add_button);
	}

	public void addCamHandler(ActionListener listener)
	{
		add_button.addActionListener(listener);
	}
	
	public void addNextHandler(ActionListener mainWindow)
	{
		next_button.addActionListener(mainWindow);		
	}
	
	// members ===============================
	JButton add_button = new JButton("Add");
	JButton next_button = new JButton("Video");

}
